package com.bjx.generator.mapper;

import com.bjx.generator.domain.bo.TableFieldBO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PostgreSqlCodeMapper {

    /**
     * 查询数据库中表名列表
     * @param
     * @return: com.bjx.common.core.domain.R
     * @Author: liushuai
     * @Date: 2022/9/10 22:18
     */
    List<String> listTableName(String schemaName);

    /**
     * 根据表名查询表字段信息
     * @param tableName
     * @return: java.util.List<com.bjx.generator.domain.bo.TableFieldBO>
     * @Author: liushuai
     * @Date: 2022/7/13 15:15
     */
    List<TableFieldBO> selectTableFieldByTableName(String tableName);

    /**
     * 根据表名查询表注释
     * @param tableName
     * @return: java.lang.String
     * @Author: liushuai
     * @Date: 2022/9/14 17:12
     */
    String selectTableComment(String tableName);
}
